function getTokenAndrFreshToken(){
    storage = window.localStorage;
    token=storage.getItem("token");
    refreshToken=storage.getItem("refreshToken");
    return{
        "token":token,
        "refreshToken":refreshToken
    }
}

function generateHeaders(map){
    const headers={};
    for (const mapKey in map) {
        headers[mapKey]=map[mapKey];
    }
    return headers;
}

const headers=generateHeaders(getTokenAndrFreshToken());


